import request from '@/utils/request'
import qs from 'qs'
import { Base64 } from 'js-base64';

// 平台列表
export function list(params) {
  return request({
    url: '/platform/price/page',
    method: 'get',
    params
  })
}

export function remove(data) {
  return request({
    url: '/platform/price/remove',
    method: 'post',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
    },
    data: qs.stringify(data),
  })
}

// 价格维度统计
export function priceList(params) {
  return request({
    url: '/platform/price/list',
    method: 'get',
    params
  })
}

// 详情
export function detail(id) {
  return request({
    url: '/platform/price/detail',
    method: 'get',
    params:{
      id
    }
  })
}

export function save(data) {
  return request({
    url: '/platform/price/save',
    method: 'post',
    data
  })
}

export function submit(data) {
  return request({
    url: '/platform/price/submit',
    method: 'post',
    data
  })
}